package com.kaili.common.aop.log.service.impl;

import com.kaili.common.aop.log.service.LogService;
import com.kaili.common.aop.log.bean.OperateLogBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

@Service
public class LogServiceImpl implements LogService {

    @Autowired
	private MongoTemplate mongoTemplate;

	public void saveLog(OperateLogBean logBean,String collectionName) {
		mongoTemplate.save(logBean,collectionName);
	}
}